#pragma once
#include "GameObject.h"

class GameObjectList
{
public:
	GameObjectList();
	~GameObjectList();

	void Add(GameObject *obj);
	void Destroy(GameObject *obj);
	void Destroy(int id);
	GameObject *Find(int id);
	//void SetRootMatrix(glm::mat4 &mat);
	void SetRootMatrixPtr(glm::mat4 *mat);
	void Update();
	UINT GetCount();
	GameObject *GetGameObject(UINT index);

private:
	std::vector<GameObject*> m_list;
	GameObject m_root;
};

